import Layout from '@/layout'
import twoLayout from '@/twoLayout'

export default {
  path: '/tunnelPersonnel',
  name: 'tunnelPersonnel',
  redirect: '/tunnelPersonnel/tunnelInPersonnel',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: '隧道人员管理',
    roles: ['admin'],
    icon: 'tree'
  },
  children: [
    {
      path: 'realTimePositioning',
      name: 'realTimePositioning',
      component: () => import(/* webpackChunkName: "tunnelInPersonnelPersonnelStatistics" */'@/views/tunnelPersonnel/RealTimePositioning'),
      meta: {
        title: '实时定位'
      }
    },
    {
      path: 'tunnelDiagram',
      name: 'tunnelDiagram',
      component: () => import(/* webpackChunkName: "tunnelInPersonnelTunnelDiagram" */'@/views/tunnelPersonnel/TunnelDiagram'),
      meta: {
        title: '隧道示意图'
      }
    },
    {
      path: 'realTimeLocation',
      name: 'realTimeLocation',
      component: () => import(/* webpackChunkName: "operateRealTimeLocation" */'@/views/tunnelPersonnel/RealTimeLocation'),
      meta: {
        showNav: true,
        title: '进出洞记录'
      }
    },
    {
      path: 'trackPlayback',
      name: 'trackPlayback',
      component: () => import(/* webpackChunkName: "operateTrackPlayback" */'@/views/tunnelPersonnel/TrackPlayback'),
      meta: {
        showNav: true,
        title: '轨迹回放'
      }
    },
    {
      path: 'locationQuery',
      name: 'locationQuery',
      component: () => import(/* webpackChunkName: "operateLocationQuery" */'@/views/tunnelPersonnel/LocationQuery'),
      meta: {
        showNav: true,
        title: '历史位置查询'
      }
    },
    {
      path: 'attendanceStatistics',
      name: 'attendanceStatistics',
      component: () => import(/* webpackChunkName: "OperateAttendanceStatistics" */'@/views/tunnelPersonnel/AttendanceStatistics'),
      meta: {
        showNav: true,
        title: '考勤统计'
      }
    }
  ]
}
